<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/26 0026
 * Time: 下午 17:28
 */

namespace app\index\controller;

use think\Controller;
use think\Request;
use think\Session;

class Common  extends Controller
{
     public function __construct(Request $request = null)
     {
         /parent::__construct($request);
          if(	!Session::get('admin_id')){

              $this->redirect('admin/login/login');
          }

     }
}